package site.assad.ditype;

/**
 * Author: Al-assad 余林颖
 * E-mail: yulinying_1994@outlook.com
 * Date: 2017/11/30 0:03
 * Description: 用于演示依赖注入：引用其他Bean'
 */
public class Article {
    private String title;
    private User user;

    public Article(String title, User user) {
        this.title = title;
        this.user = user;
    }

    public Article() {
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @Override
    public String toString() {
        return "Article{" +
                "title='" + title + '\'' +
                ", user=" + user +
                '}';
    }
}
